package com.uidt.project.ptsj.service.impl;

import java.util.List;
import com.uidt.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uidt.project.ptsj.mapper.PtsjCardInfoMapper;
import com.uidt.project.ptsj.domain.PtsjCardInfo;
import com.uidt.project.ptsj.service.IPtsjCardInfoService;

/**
 * 挂牌记录Service业务层处理
 * 
 * @author uidt
 * @date 2024-08-29
 */
@Service
public class PtsjCardInfoServiceImpl implements IPtsjCardInfoService 
{
    @Autowired
    private PtsjCardInfoMapper ptsjCardInfoMapper;

    /**
     * 查询挂牌记录
     * 
     * @param id 挂牌记录主键
     * @return 挂牌记录
     */
    @Override
    public PtsjCardInfo selectPtsjCardInfoById(String id)
    {
        return ptsjCardInfoMapper.selectPtsjCardInfoById(id);
    }

    /**
     * 查询挂牌记录列表
     * 
     * @param ptsjCardInfo 挂牌记录
     * @return 挂牌记录
     */
    @Override
    public List<PtsjCardInfo> selectPtsjCardInfoList(PtsjCardInfo ptsjCardInfo)
    {
        return ptsjCardInfoMapper.selectPtsjCardInfoList(ptsjCardInfo);
    }

    /**
     * 新增挂牌记录
     * 
     * @param ptsjCardInfo 挂牌记录
     * @return 结果
     */
    @Override
    public int insertPtsjCardInfo(PtsjCardInfo ptsjCardInfo)
    {
        return ptsjCardInfoMapper.insertPtsjCardInfo(ptsjCardInfo);
    }

    /**
     * 修改挂牌记录
     * 
     * @param ptsjCardInfo 挂牌记录
     * @return 结果
     */
    @Override
    public int updatePtsjCardInfo(PtsjCardInfo ptsjCardInfo)
    {
        ptsjCardInfo.setUpdateTime(DateUtils.getNowDate());
        return ptsjCardInfoMapper.updatePtsjCardInfo(ptsjCardInfo);
    }

    /**
     * 批量删除挂牌记录
     * 
     * @param ids 需要删除的挂牌记录主键
     * @return 结果
     */
    @Override
    public int deletePtsjCardInfoByIds(String[] ids)
    {
        return ptsjCardInfoMapper.deletePtsjCardInfoByIds(ids);
    }

    /**
     * 删除挂牌记录信息
     * 
     * @param id 挂牌记录主键
     * @return 结果
     */
    @Override
    public int deletePtsjCardInfoById(String id)
    {
        return ptsjCardInfoMapper.deletePtsjCardInfoById(id);
    }
}
